package com.wongoing.jwt;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * Token的Model类，可以增加字段提高安全性，例如时间戳、url签名
 */
public class JwtUserModel {

	// 用户id
	private Integer userId;
    
    // 用户名
    private String userName;
    
    // 微信openId
    private String openId;

    // JWT
    private String token;
    
    // token 签发时间
    private Date iat;
    
	// 过期时间
    private Date exp;
    
    // 用户角色
    private String role;

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Date getIat() {
		return iat;
	}

	public void setIat(Date iat) {
		this.iat = iat;
	}

	public Date getExp() {
		return exp;
	}

	public void setExp(Date exp) {
		this.exp = exp;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}
       
}
